package com.dyson;

import com.dyson.entity.Info;
import com.dyson.service.MyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.ui.context.support.UiApplicationContextUtils;

//@EnableAutoConfiguration
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Application.class, args);
        Info bean = run.getBean(Info.class);
        MyService service = (MyService) run.getBean("aaaa");
        System.out.println(bean.getKey());

    }

}
